package org.flowers.unbeaten.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.flowers.unbeaten.base.entity.Department;

import java.util.List;

/**
 * <p>
 * 部门 Mapper 接口
 * </p>
 *
 * @author RyanWang
 * @since 2021-07-15
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    /**
     * 获取部门数据列表
     * @param department
     * @return
     */
    List<Department> selectDepartments(@Param("department") Department department);

    /**
     * 获取全部部门数据
     * @return
     */
    List<Department> selectAllDepartments();

    /**
     * 获取全部部门数据
     * @return
     */
    List<Department> getAllDepartments();

}
